//
//  RattanCityPicker.h
//  CityPicker
//
//  Created by rattanchen on 18/8/9.
//  Copyright © 2017年 rattanchen. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface RattanCityPicker : UIView <UIPickerViewDelegate, UIPickerViewDataSource>
typedef void (^GetSelectCity) (NSMutableDictionary *dicSelectCity);
typedef void (^SureBtnAction) (void);
typedef void (^CancelBtnAction) (void);
@property (nonatomic,strong) GetSelectCity getSelectCity;
@property (nonatomic,strong) SureBtnAction sureBtnBlock;
@property (nonatomic,strong) CancelBtnAction cancelBtnBlock;


/**动画时间 默认0.5*/
@property (assign, nonatomic) CGFloat animation_dur;

#pragma maark - 背景视图属性
/**背景色设置 默认黑色*/
@property (strong, nonatomic) UIColor *vBG_color;
/**背景色透明度 默认0.3*/
@property (assign, nonatomic) CGFloat vBG_alpha;

#pragma maark - 标签栏属性
/**工具栏背景颜色 默认灰色*/
@property (strong, nonatomic) UIColor *toolViewBg_color;
/**工具栏高度 默认44*/
@property (assign, nonatomic) CGFloat toolV_h;

#pragma maark - 按钮属性
/**确认按钮字体颜色 默认黑色*/
@property (strong, nonatomic) UIColor *sureBtnNor_color;
/**确认按钮字体高亮颜色 默认浅灰色*/
@property (strong, nonatomic) UIColor *sureBtnHigl_color;
/**确认按钮背景颜色 默认无色*/
@property (strong, nonatomic) UIColor *sureBtnBg_color;
/**确认按钮字体大小 默认17*/
@property (strong, nonatomic) UIFont *sureBtn_font;
/**确定按钮标题*/
@property(nonatomic,copy)NSString *sureBtn_Title;

/**取消按钮字体颜色 默认黑色*/
@property (strong, nonatomic) UIColor *cancleBtnNor_color;
/**取消按钮字体高亮颜色 默认浅灰色*/
@property (strong, nonatomic) UIColor *cancleBtnHigl_color;
/**取消按钮背景颜色 默认无色*/
@property (strong, nonatomic) UIColor *cancleBtnBg_color;
/**取消按钮字体大小 默认17*/
@property (strong, nonatomic) UIFont *cancleBtn_font;
/**取消按钮标题*/
@property(nonatomic,copy)NSString *cancleBtn_Title;
//--------------
/**按钮边距*/
@property(nonatomic,assign)CGFloat btn_margin;
#pragma mark - 选择标签属性
/**选择标签间距*/
@property(nonatomic,assign)CGFloat selectLbl_margin;
/**选择标签背景色 默认无色*/
@property(nonatomic,strong)UIColor *selectLblBg_color;
/**选择标签字体颜色 默认黑色*/
@property(nonatomic,strong)UIColor *selectLblStr_color;
/**选择标签字体大小 默认17号*/
@property(nonatomic,assign)UIFont *selectLblStr_font;



#pragma mark - 选择器属性
/**选择器高度 默认216*/
@property (assign, nonatomic) CGFloat pickView_h;
/**选择器背景颜色，默认白色*/
@property (strong, nonatomic) UIColor *pickViewBg_color;
//--------------
/**第一组字体大小，默认14，注意设置字体大小时，需要实时改变选择器的行高*/
@property (strong, nonatomic) UIFont *componentFir_font;
/**第一组字体颜色，默认黑色*/
@property (strong, nonatomic) UIColor *componentStrFir_color;
/**第一组背景色，默认无色*/
@property (strong, nonatomic) UIColor *componentBgFir_color;

/**第二组字体大小，默认14*/
@property (strong, nonatomic) UIFont *componentSec_font;
/**第二组字体颜色，默认黑色*/
@property (strong, nonatomic) UIColor *componentStrSec_color;
/**第二组背景色，默认无色*/
@property (strong, nonatomic) UIColor *componentBgSec_color;

/**第三组字体大小，默认14*/
@property (strong, nonatomic) UIFont *componentThird_font;
/**第三组字体颜色，默认黑色*/
@property (strong, nonatomic) UIColor *componentStrThird_color;
/**第三组背景色，默认无色*/
@property (strong, nonatomic) UIColor *componentBgThird_color;
/**block获取选择的城市的信息*/
- (void)cityPikerGetSelectCity:(GetSelectCity)getSelectCity;

@end
